package com.test.fundible.fundible_00_analytics.FundibleUtil

import android.app.Application
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.FundibleASBuilder
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.FundibleASSycManager
import com.test.fundible.fundible_00_utils.FundibleUtil

object FundibleSycDeviceUtil {

    /**
     * 初始化设备信息模块
     *
     * @param context Application
     */
    fun in_fundibleit(context: Application) {
        try {

            //tag2024
            FundibleASBuilder.setLog_fundible(true)
            // 初始化
            FundibleASSycManager.getInstance_fundible().init_fundible(context)

        } catch (e: Exception) {
            e.printStackTrace()
        }
    }

    /**
     * 保存设备 s2s信息
     */
    fun saveS2SI_fundiblenfo() {
        try {
            if (FundibleUtil.didLogin_fundible()) {
                FundibleASSycManager.getInstance_fundible().sycData_fundible {}
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}